<?php

namespace HelloAdmin\Controller;

class AuthorController extends CommonController {

    private $Author;

    public function __construct() {
        parent::__construct();
        $this->Author = new \Common\Model\BookAuthorModel();
    }

    public function getName(){
        $author_id = I('post.author_id');
        if($author_id > 0 && IS_AJAX){
             echo $this->Author->getAuthorName($author_id);
             exit;
        }
        return FALSE;
    }
    
}
